package com.bjc.principle.builder;

/**
 * @program: DesignPattern
 * @description: 指挥：核心。负责指挥构建一个工程，工程如何构建由它决定
 * @author: bjc
 * @create: 2020-12-16 21:34
 */
public class Director {

    //指挥工人按照顺序建房子
    public Product build(Builder builder){
        builder.buildA();
        builder.buildB();
        builder.buildC();
        builder.buildD();

        return builder.getProduct();
    }
}
